﻿package Base.Log
{
	import flash.system.System;
	/**
	 * ...
	 * @author fox
	 */
	public class LogManager 
	{
		static public var useTrace:Boolean = true;
		static private var logStr:String = "";
		
		public function LogManager():void
		{
		}
		
		static public function logOut( str:String ):void
		{
			logStr += str;
			logStr += "\n";
			
			if ( useTrace )
			{
				trace(str);
			}
			
			if ( logStr.length > 102400 )
				return;
		}
		
		static public function logSave( path:String ):void
		{
			System.setClipboard( logStr ); 
		}
		
	}
	
}